package com.cn.wanxi.consumer.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.sql.Date;

/**
 * @ClassName ThreadMsg
 * @Description 线程消息类
 * @Author JiJiang
 * @Date 2022/9/28 23:09
 * @Version 1.0
 */
@Data
@TableName("wx_thread_msg")
public class ThreadMsg {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
//    private Date publishTime;
//    private Date receiveTime;


    private Long publishTime;

    private Long receiveTime;

    private Date importTime;

    private String msg;

    public ThreadMsg() {

    }

//    public ThreadMsg(Date publishTime, String msg) {
//
//        this.publishTime = publishTime;
//        this.msg = msg;
//
//    }


    public ThreadMsg(Long publishTime, String msg) {

        this.publishTime = publishTime;
        this.msg = msg;

    }

}
